nodeeditor: Don't use container api on list box rows
authorMatthias Clasen <mclasen@redhat.com>
Wed, 6 May 2020 21:03:12 +0000 (17:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 6 May 2020 21:03:12 +0000 (17:03 -0400)
GtkListBoxRow is not a container anymore.

demos/node-editor/node-editor-window.c

index 7bda0679d4bf8297b4b14708ace2d35c7fcfe586..06214d282c7cdb1b2775c3bfd37ce118e51ddf18 100644 (file)
@@ -796,7 +796,7 @@ node_editor_window_create_renderer_widget (gpointer item,
   gtk_container_add (GTK_CONTAINER (box), picture);
 
   row = gtk_list_box_row_new ();
-  gtk_container_add (GTK_CONTAINER (row), box);
+  gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), box);
   gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
 
   return row;